import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import './index.css'
import App from './App.jsx'
import weShare from './utils/weShare';
// import VConsole from 'vconsole';

// new VConsole();
weShare.init();
weShare.share();

// 获取基础路径，兼容开发和生产环境
const basename = import.meta.env.BASE_URL;
createRoot(document.getElementById('root')).render(
  <StrictMode>
    <BrowserRouter basename={basename}>
      <App />
    </BrowserRouter>
  </StrictMode>,
)
